import CartIndex from '@/components/cart/index.vue'
import CartConfirm from '@/components/cart/confirm.vue'


// 路由结构
const list = [
    {
        path: 'index',
        name: 'CartIndex',
        component: CartIndex,
        meta: { IsLogin: true }
    },
    {
        path: 'confirm',
        name: 'CartConfirm',
        component: CartConfirm,
        meta: { IsLogin: true }
    },
]

// 父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [
    {
        name: 'cart',
        path: '/cart',
        component: layout,
        children: list
    }
]
